import axios from '../../utils/http'

export function graphiteScreenRecordgetAll(params) {
    return axios({
        url: '/graphiteScreenRecord/getAll',
        method: 'get',
        params: params
    })
}
export function graphiteScreenRecordcreate(data) {
    return axios({
        url: '/graphiteScreenRecord/create',
        method: 'post',
        data
    })
}
export function graphiteScreenRecordupdate(data, id) {
    return axios({
        url: '/graphiteScreenRecord/update?id='+ id,
        method: 'put',
        data
    })
}
export function graphiteScreenRecorddelete(id) {
    return axios({
        url: '/graphiteScreenRecord/delete',
        method: 'delete',
        params:{
            id: id
        }
    })
}